<template>
  <div class="cart">
    <div class="head">
      <img src="img/carth.png" />
      <img src="img/zjt.png" class="jt" @click="fun()" />
      <p>购物车</p>
    </div>
    <div class="middle">
      <img src="img/cart.png" />
      <p>登录后才能看到商品哦~</p>
      <button>立即登录</button>
    </div>
    <div class="title">
      <div></div>
      <div class="con">
        <img src="img/goodleft.png" class="left" />
        <p>精选好物</p>
        <img src="img/goodright.png" class="right" />
      </div>
      <div></div>
    </div>
    <div class="content">
      <CartZi/>
      <CartZi/>
      <CartZi/>
      <CartZi/>
      <CartZi/>
      <CartZi/>
      <CartZi/>
      <CartZi/>
      <CartZi/>
      <CartZi/>
      <CartZi/>
      <CartZi/>
    </div>
  </div>
</template>

<script>
import CartZi from "./cartZi"
export default {
  data() {
    return {
      count: 0
    };
  },
  methods: {
    fun() {
      this.$router.push("/home");
    },
    load() {
      this.count += 1;
    }
  },
  components: {
    CartZi
  }
};
</script>

<style scoped>
.cart {
  background-color: rgb(244, 244, 244);
}
.cart .head img:nth-child(1) {
  width: 100%;
  height: 0.88rem;
  vertical-align: top;
  position: absolute;
}
.jt {
  position: absolute;
  display: inline-block;
  width: 0.32rem;
  height: 0.32rem;
  margin-top: 0.28rem;
  margin-left: 0.1rem;
  z-index: 333;
}
.head p {
  width: 100%;
  position: absolute;
  z-index: 222;
  font-size: 0.15rem;
  color: white;
  line-height: 0.88rem;
  text-align: center;
}
.middle {
  width: 100%;
  height: 2.5rem;
  margin-top: 0.78rem;
  position: absolute;
  z-index: 55;
  background-color: rgb(244, 244, 244);
}
.middle img {
  width: 0.9rem;
  height: 0.9rem;
  position: absolute;
  left: calc(50% - 0.45rem);
  padding-top: 0.4rem;
}
.middle p {
  width: 100%;
  color: rgb(102, 102, 102);
  font-size: 0.14rem;
  padding-top: 1.4rem;
  position: absolute;
  text-align: center;
}
.middle button {
  width: 0.82rem;
  background-color: rgb(255, 255, 255);
  border-color: rgb(102, 102, 102);
  border-radius: 0.16rem;
  border-width: 0.01rem;
  margin-top: 1.7rem;
  padding: 0.08rem 0.14rem;
  font-size: 0.13rem;
  position: absolute;
  left: calc(50% - 0.41rem);
}
.title {
  width: 100%;
  height: 0.42rem;
  background-color: rgb(244, 244, 244);
  position: absolute;
  margin-top: 3.28rem;
  display: flex;
  justify-content: space-between;
}
.title div {
  width: 33.33%;
}
.con p {
  font-size: 0.15rem;
  font-weight: bold;
  height: 0.42rem;
  line-height: 0.42rem;
  margin-top: -1.15rem;
  text-align: center;
}
.con .left {
  width: 0.18rem;
  height: 0.18rem;
  margin-top: 0.12rem;
  margin-left: 0.06rem;
}
.con .right {
  width: 0.18rem;
  height: 0.18rem;
  margin-top: -0.3rem;
  margin-left: 1rem;
}
.content {
  background-color: rgb(244, 244, 244);
  margin-top: 3.7rem;
  position: absolute;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}


</style>